<?php

namespace app\popo\vo;

use app\popo\BaseVO;

/**
 * 订单提交响应VO
 */
class OrderSubmitVO extends BaseVO
{
    // 使用BaseVO的动态属性机制

    public function getId(): int
    {
        return $this->data['id'] ?? 0;
    }

    public function setId(int $id): void
    {
        $this->data['id'] = $id;
    }

    public function getOrderNumber(): string
    {
        return $this->data['orderNumber'] ?? '';
    }

    public function setOrderNumber(string $orderNumber): void
    {
        $this->data['orderNumber'] = $orderNumber;
    }

    public function getOrderAmount(): float
    {
        return $this->data['orderAmount'] ?? 0.0;
    }

    public function setOrderAmount(float $orderAmount): void
    {
        $this->data['orderAmount'] = $orderAmount;
    }

    public function getOrderTime(): string
    {
        return $this->data['orderTime'] ?? '';
    }

    public function setOrderTime(string $orderTime): void
    {
        $this->data['orderTime'] = $orderTime;
    }
}